package user;

/**
 * Represents an administrator within the system<br>
 * An admin can do everything a user can, plus has extra privileges
 * 
 * @author Gal Lalouche
 */
@Deprecated
public final class Administrator extends User {
	// final so no one can override equals
	/**
	 * Creates a new admin
	 * 
	 * @param login The admin's login
	 * @param name The admin's name
	 */
	Administrator(String login, String name) {
		super(login, name);
	}
	
	@Override
	public boolean equals(Object obj) {
		// also checks type
		return (obj instanceof Administrator) && super.equals(obj);
	}
}
